﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Carmichael_Generate.aspx.cs" Inherits="newBlog.admin.order.Carmichael_Generate" %>

<%@ Register Src="~/model/allLink.ascx" TagPrefix="uc1" TagName="allLink" %>

<% 
    if (Session["user_id"]==null) {
        Response.Write("{\"error\":\"您未登录本站\"}");
        return;
    }
    if (Convert.ToInt32(Session["user_grade"])!=1) { 
    Response.Write("{\"error\":\"您不是管理员\"}");
        return;
    }
    %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>卡密生成-<%=Application["title"] %></title>
    <meta name="description" content="<%=Application["content"] %>">
    <meta name="keywords" content="<%=Application["key"] %>">
    <uc1:allLink runat="server" ID="allLink" />
    <script src="/js/admin/order_preview.js?<%=DateTime.Now.ToString("yyyyMMddHHmmssffff") %>"></script>
</head>
<body>
<div class="layui-row layui-col-space10 margin0">
    <div class="layui-col-md1 layui-col-xs3 ">
    <input type="text" id="num" required lay-verify="required" placeholder="数量" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-col-md1 layui-col-xs3">
    <input type="text" id="price" required lay-verify="required" placeholder="价值" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-col-md1 layui-col-xs3">
    <button type="button" class="layui-btn  layui-btn-primary layui-border-black layui-btn-fluid" onclick="CreateCarmichael()">生成</button>
    </div>

</div><!--顶层生成工具栏-->

<div class="layui-row layui-col-space10 margin0">
<div class="layui-col-md1 layui-col-xs3">
    <button type="button"  class="selectedBtn layui-btn layui-btn-primary layui-btn-fluid" onclick="switch_mode(1,this)">未使用</button>
</div>
<div class="layui-col-md1 layui-col-xs3">
    <button type="button" class="selectedBtn layui-btn  layui-btn-primary layui-btn-fluid" onclick="switch_mode(2,this)">以使用</button>
</div>
<div class="layui-col-md1 layui-col-xs3">
    <button type="button" class="layui-btn  layui-btn-primary layui-btn-fluid" onclick="getSelectedRowMsgDel()">删除选中</button>
</div>
</div><!--切换工具栏-->
<div class="layui-row">
<table id="CarMicheal" lay-filter="CarMicheal"></table>
<script>
RenderTable("#CarMicheal",'','/CenterInc/view_json/admin/Order_Generate_json.aspx',true,[[
 {field: 'caozuo', title: '操作', fixed: 'left',type:'checkbox'}
 ,{field: 'Id', title: 'ID', sort: true, fixed: 'left'}
 ,{field: 'User_id', title: '使用人'}
 ,{field: 'Value', title: '卡密值'}
 ,{field: 'Key', title: '密匙', width:80}
 ,{field: 'Price', title: '价格', sort: true}
 ,{field: 'CreateTime', title: '创建时间',  sort: true}
 ,{field: 'UseTime', title: '使用时间', sort: true}
 ]],20,'','post');
</script>

</div><!--卡密生成显示-->
</body>
</html>
